//
//  BIDDetailEmailFromInboxViewController.h
//  shangwuting
//
//  Created by mal on 13-12-25.
//  Copyright (c) 2013年 mal. All rights reserved.
//

#import "BIDWithHttpRequestViewController.h"

@class BIDShowPhotoView;
@class BIDDownloadFile;
@class BIDShowDocView;

@interface BIDDetailEmailFromInboxViewController : BIDWithHttpRequestViewController<UITableViewDataSource, UITableViewDelegate,UIAlertViewDelegate>

@property (strong, nonatomic)IBOutlet UILabel *titleLabel;
@property (strong, nonatomic)IBOutlet UILabel *senderLabel;
@property (strong, nonatomic)IBOutlet UILabel *timeLabel;
@property (strong, nonatomic)IBOutlet UITextView *contentTextView;
@property (strong, nonatomic)IBOutlet UILabel *contentLabel;

@property (strong, nonatomic)BIDShowPhotoView *showPhotoView;
@property (strong, nonatomic)IBOutlet UITableView *myTabelView;
@property (strong, nonatomic)UIImageView *bgImgView1;

@property (strong, nonatomic)IBOutlet UIButton *confirmBtn;
@property (strong, nonatomic)IBOutlet UITextField *replyTF;
@property (strong, nonatomic)IBOutlet UIButton *replyBtn;

@property (strong, nonatomic)IBOutlet UILabel *lineLabel1;
@property (strong, nonatomic)IBOutlet UILabel *lineLabel2;

//滚动视图
@property (strong, nonatomic)UIScrollView *myScrollView;

@property (strong, nonatomic)NSMutableArray *docsArr;
@property (strong, nonatomic)NSMutableArray *photosArr;
@property (strong, atomic)NSMutableArray *photosDataArr;
@property (strong, nonatomic)NSMutableArray *dataArr;

@property (strong, nonatomic)BIDDownloadFile *downloadFile;

//删除邮件用这个
@property (copy, nonatomic)NSString *deleteId;
//查看详情用这个
@property (copy, nonatomic)NSString *emailId;
@property (copy, nonatomic)NSString *creatorId;
@property (copy, nonatomic)NSString *creatorName;

//
@property (strong, nonatomic)BIDShowDocView *showDocView;


//要打开的文件的名字
@property (copy, nonatomic)NSString *willOpenFileName;

@property (assign, nonatomic)BOOL bReaded;


- (IBAction)confirmBtnHandler:(id)sender;
- (IBAction)replyBtnHandler:(id)sender;
- (IBAction)tfEditEnd:(id)sender;

//初始化布局
- (void)initLayout;
//
- (void)loadData;
//加载图片并显示
- (void)loadPhotos;
//
- (void)initMenu;

- (BOOL)isFileExist:(NSString*)fileName;

//回复邮件
- (void)replyEmail:(NSString*)strContent;

//
- (void)menuItemHandler:(UIButton*)btn;

@end
